package appconfig

import (
	"fmt"
	"github.com/spf13/viper"
)

type AppConfig struct {
	MysqlConfig    MysqlConfig
	RealAuthConfig RealAuthConfig
}

var Appconf AppConfig

func InitConfig() {
	viper.SetConfigFile("D:\\wang\\week\\appconfig\\local.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&Appconf)
	fmt.Println(Appconf)
}
